/*
 * This is Micro or printing the log messages
 */
#ifndef cDPRINTF_h
#define cDPRINTF_h

#define LOG_INFO 1
#define LOG_NOTICE 2
#define LOG_DEBUG 4
#define LOG_FATAL 8
#define LOG_ALL 15

extern int g_debug_level;

#if defined(_MSC_VER)
#define D_PRINTF(log_level,__VA_ARGS__){\
    if((g_debug_level|LOG_FATAL )& log_level){\
        fprintf(stderr,__VA_ARGS__); \
    }\
}
#else
#define D_PRINTF(log_level,arg...){\
    if((g_debug_level|LOG_FATAL )& log_level){\
        fprintf(stderr,arg); \
    }\
}
#endif

#endif
